package com.ktjiaoyu.ktmall.entity;

import java.util.List;

public class Category {
    private String id;
    private String name;
    private String parentId;
    private String icon;
    private Integer sort;
    private Integer status;
    private Integer isDeleted;
    private List<Category> children;

    public Category() {
    }

    public Category(String id, String name, String parentId, String icon, Integer sort, Integer status, Integer isDeleted, List<Category> children) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.icon = icon;
        this.sort = sort;
        this.status = status;
        this.isDeleted = isDeleted;
        this.children = children;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public List<Category> getChildren() {
        return children;
    }

    public void setChildren(List<Category> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", parentId='" + parentId + '\'' +
                ", icon='" + icon + '\'' +
                ", sort=" + sort +
                ", status=" + status +
                ", isDeleted=" + isDeleted +
                ", children=" + children +
                '}';
    }
}
